<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">

	<!--<link rel="stylesheet" href="bootstrap-3.3.5-dist/css/bootstrap.min.css"/>
	<script src="js/jquery-2.1.0.min.js"></script>
	<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>-->
	<title>患者信息添加</title>

	<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>


</head>
<body>



<!--
    作者：offline
    时间：2019-05-22
    描述：此信息页面用来帮助管理人员添加
    患者信息
-->
<div > <h4 align="center">患者信息个人表</h4></div>
<hr />
<form  action="/addl"  class="form-horizontal">

	<div class="form-group" style="margin-bottom: 40px;">
		<label for="name1" class="col-md-1 control-label col-md-offset-3">姓名</label>
		<div class="col-md-2">
			<input type="text" class="form-control" name="name" placeholder="name" id="name1"/>
		</div>

		<label for="id1" class="col-md-1 control-label" >编号</label>
		<div class="col-md-2">
			<input type="text" class="form-control" name="id" placeholder="id" id="id1"/>
		</div>
	</div>

	<div class="form-group"  style="margin-bottom: 40px;">
		<label for="sex1" class="col-md-1 control-label col-md-offset-3">性别</label>
		<div class="col-md-2">
			<select class="form-control" name="sex" id="sex1">
				<option value="男">男</option>
				<option value="女">女</option>
			</select>
		</div>

		<label for="born1" class="col-md-1 control-label" >出生日期</label>
		<div class="col-md-2">
			<input type="date" class="form-control" name="born" placeholder="born" id="born1"/>
		</div>
	</div>

	<div class="form-group"  style="margin-bottom: 40px;">
		<label for="pphone1" class="col-md-1 control-label col-md-offset-3">本人电话</label>
		<div class="col-md-2">
			<input type="tel" class="form-control" name="pphone" placeholder="pphone" id="pphone1"/>
		</div>

		<label for="ophone1" class="col-md-1 control-label" >亲友电话</label>
		<div class="col-md-2">
			<input type="tel" class="form-control" name="ophone" placeholder="ophone" id="ophone1"/>
		</div>
	</div>

	<div class="form-group"  style="margin-bottom: 40px;">
		<label for="age1" class="col-md-1 control-label col-md-offset-3">年龄</label>
		<div class="col-md-2">
			<input type="number" class="form-control" name="age" placeholder="age" required="ture" id="age1"/>
		</div>

		<label for="ethnic1" class="col-md-1 control-label" >民族</label>
		<div class="col-md-2">
			<input type="text" class="form-control" name="ethnic" placeholder="ethnic" id="ethnic1"/>
		</div>
	</div>

	<div class="form-group"  style="margin-bottom: 40px;">
		<label for="blood1" class="col-md-1 control-label col-md-offset-3">血型</label>
		<div class="radio col-md-2" id="blood1">
			<label>
				<input type="radio" name="blood" value="A型" aria-label="..."/>A型
			</label>
			<label>
				<input type="radio" name="blood" value="B型" aria-label="..."/>B型
			</label>
			<label>
				<input type="radio" name="blood" value="O型" aria-label="..."/>O型
			</label>
			<label>
				<input type="radio" name="blood" value="AB型" aria-label="..."/>AB型
			</label>
			<label>
				<input type="radio" name="blood" value="不详" aria-label="..."/>不详
			</label>
		</div>

		<label for="orderdata1" class="col-md-1 control-label" >预约日期</label>
		<div class="col-md-2 ">
			<input type="date" class="form-control" name="orderdata" placeholder="orderdata" id="orderdata1"   required  min="2020-01-04"/>
		</div>
	</div>

	<div class="form-group"  style="margin-bottom: 40px;">
		<label for="education1" class="col-md-1 control-label col-md-offset-3">学历</label>
		<div class="col-md-2">
			<select class="form-control" name="education" id="education1">
				<option value="大学">大学</option>
				<option value="高中">高中</option>
				<option value="初中">初中</option>
				<option value="小学">小学</option>
			</select>
		</div>

		<label for="marry1" class="col-md-1 control-label">婚姻状况</label>
		<div class="col-md-2">
			<select class="form-control" name="marry" id="marry1">
				<option value="结婚">结婚</option>
				<option value="未婚">未婚</option>
			</select>
		</div>
	</div>

	<div class="form-group"  style="margin-bottom: 40px;">
		<label for="casehistory1" class="col-md-1 control-label col-md-offset-3">病历</label>
		<textarea class="form-control col-md-offset-4" style="width: 40%;" rows="6" placeholder="请输入病况" required name="casehistory" id="casehistory1"></textarea>
	</div>

	<div class="form-group"  style="margin-bottom: 40px;">
		<div class="col-md-1 col-md-offset-4">
			<button type="submit" class="btn btn-primary btn-lg">保存</button>
		</div>
		<div class="col-md-1 col-md-offset-1">
			<button type="reset" class="btn btn-danger btn-lg">重置</button>
		</div>
	</div>
</form>

</body>


<script>
/*	function test() {
	    var id=$("#id");
		$.ajax({
            type:"post",
			url: "/add",
			data: {id:id},
			success:function (result) {
				alert(result);
            }
		})
		return false;
    }*/
	//实
// +现动态改变日期
		var now=new Date();
		var year=now.getFullYear();
		var mon=now.getMonth()+1;
		if(mon<=9){
			mon="0"+mon;
		}
		var date=now.getDate();
		if(date<=9){
			date="0"+date;
		}
		var all=year+"-"+mon+"-"+date;

		/*alert(all)*/

		$('#orderdata1').attr("min",all);

		/*alert($("#orderdata1").attr("min"));*/
		/*alert($('#orderdata1').attr("min"))*/
		/*$("#orderdata1").datapicker({ minDate: 1});*/
</script>
</html>
